package top.resty.erp.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.resty.erp.dao.IType;
import top.resty.erp.domain.Type;
import top.resty.erp.service.TypeService;

import java.util.List;

/**
 * <pre>
 *
 * </pre>
 *
 * @author : resty
 * @date : 2021年03月23 00:17
 */
@Service
public class TypeServiceImpl implements TypeService {
	
	@Autowired
	private IType iType;
	
	
	@Override
	public boolean saveType(Type type) {
		return iType.saveType(type)==1?true:false;
	}
	
	@Override
	public List<Type> findById(Integer id) {
		return iType.findById(id);
	}
	
	@Override
	public boolean updateType(Type type) {
		return iType.updateType(type)==1?true:false;
	}
	
	@Override
	public boolean deleteType(Integer id) {
		return iType.deleteType(id)==1?true:false;
	}
}
